--正直者之死
local zhengzhizhezhisi = fk.CreateSkill {
    name = "mcdh_zhengzhizhezhisi",
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

zhengzhizhezhisi:addEffect(fk.CardUseFinished,{
    can_trigger =function(self, event, target, player, data)
        return player:hasSkill(self) and target.phase == Player.Play and data.card.trueName == "slash"
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:loseHp(player, 1, self.name)
        if room:askForSkillInvoke(target, self.name, data, "#zhengzhizhezhisi-draw") then
            target:drawCards(2,self.name)
        else
            target:skip(Player.Discard)
        end
    end
})

Fk:loadTranslationTable {
    ["mcdh_zhengzhizhezhisi"] = "正直者之死",
    [":mcdh_zhengzhizhezhisi"] = "当一名角色在其出牌阶段内使用【杀】结算后，你可以失去1点体力，令其选择：摸两张牌，或跳过下个弃牌阶段。",
    ["#zhengzhizhezhisi-draw"] = "正直者之死：摸两张牌，点取消则跳过下个弃牌阶段",
}

return zhengzhizhezhisi